.class public Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadStatusReceiver;
.super Landroid/content/BroadcastReceiver;
.source "ZMDownloadStatusReceiver.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 21
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 7
    .param p1, "mContext"    # Landroid/content/Context;
    .param p2, "intent"    # Landroid/content/Intent;

    .prologue
    .line 25
    if-nez p2, :cond_3

    .line 96
    :cond_2
    :goto_2
    return-void

    .line 28
    :cond_3
    new-instance v1, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v3

    invoke-direct {v1, v3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    .line 29
    .local v1, "mHandler":Landroid/os/Handler;
    invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v0

    .line 30
    .local v0, "action":Ljava/lang/String;
    const-string v3, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 31
    invoke-virtual {p2}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v3

    invoke-virtual {v3}, Landroid/net/Uri;->getSchemeSpecificPart()Ljava/lang/String;

    move-result-object v2

    .line 32
    .local v2, "packageName":Ljava/lang/String;
    new-instance v3, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadStatusReceiver$1;

    invoke-direct {v3, p0, p1, v2, v1}, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadStatusReceiver$1;-><init>(Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadStatusReceiver;Landroid/content/Context;Ljava/lang/String;Landroid/os/Handler;)V

    .line 92
    invoke-virtual {v3}, Lcom/zuimeia/sdk/download/providers/downloads/ZMDownloadStatusReceiver$1;->start()V

    goto :goto_2
.end method
